package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.GraphInfo;
import com.atguigu.lease.model.entity.LabelInfo;
import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.app.vo.room.RoomDetailVo;
import com.atguigu.lease.web.app.vo.room.RoomItemVo;
import com.atguigu.lease.web.app.vo.room.RoomQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Mapper
* @createDate 2023-07-26 11:12:39
* @Entity com.atguigu.lease.model.entity.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    //第一步查询
    Page<RoomItemVo>customSelectPage(Page<RoomItemVo> page,@Param("queryVo") RoomQueryVo queryVo);
    //第二部查询
    List<GraphInfo> selectGraphVoByRoomId(long roomId);
    //第三步查询
    List<LabelInfo> selectLabelInfoByRoomId(long roomId);

    RoomInfo selectRoomById(Long id);

    BigDecimal selectMinRentByApartmentId(Long id);
}
